import type { RouteObject } from "react-router-dom";

import BasicLayout from "@/layouts/basic-layout";
import Console from "@/pages/dashboard/console";
import Workplace from "@/pages/dashboard/workplace";


const route: RouteObject = {
    key: "/dashboard",
    label: "Dashboard",
    path: "/dashboard",
    sort: 9999,
    element: <BasicLayout />,
    children: [
        {
            key: "/dashboard/console",
            label: "主控台",
            path: "console",
            element: <Console />,
        },
        {
            key: "/dashboard/workplace",
            label: "工作台",
            path: "workplace",
            element: <Workplace />,
        },
    ],
};

export default route;